//
//  TestProblem888.swift
//  LeetCodeTests
//
//  Created by 毕武侠 on 2023/6/23.
//  Copyright © 2023 zhulongiMac02. All rights reserved.
//

import XCTest
@testable import LeetCode

final class TestProblem888: XCTestCase {

    var problem = Problem888()
    
    override func setUp() {
        super.setUp()
        // Put setup code here. This method is called before the invocation of each test method in the class.
    }
    
    override func tearDown() {
        // Put teardown code here. This method is called after the invocation of each test method in the class.
        super.tearDown()
    }
    
    // MARK: - 排序
    func testProblem888_Case1() throws {
        XCTAssertEqual(problem.fairCandySwap([1,1], [2,2]), [1,2])
    }
    
    func testProblem888_Case2() throws {
        XCTAssertEqual(problem.fairCandySwap([1,2], [2,3]), [1,2])
    }
    
    func testProblem888_Case3() throws {
        XCTAssertEqual(problem.fairCandySwap([2], [1,3]), [2,3])
    }
    
    func testProblem888_Case4() throws {
        XCTAssertEqual(problem.fairCandySwap([1,2,5], [2,4]), [5,4])
    }
    
}
